package com.kgo.usermanage.Controller;

import com.kgo.usermanage.service.UserService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author keepgoon
 * @Description: TODO
 * @date 2018/12/1415:41
 */
@RestController
@CrossOrigin
public class UserController {
    @Resource
    private UserService userService;
    @RequestMapping(value = "/user")
    public String getUserCount(){
        return userService.getUserCount();
    }
}
